package njust.dao;

import java.util.List;

import njust.domain.Goods;


public interface GoodsDao {

	public boolean addGoods(Goods goods);
	 public boolean updateGoods(Goods goods);
	 public boolean deleteGoods(int id);
	 public List getAllGoods();
	 public Goods getGoodById(int id);
	 public Goods getGoodByName(String name);
	 public List searchGoods(String keywords);
	 public List getGoodByUserId(int id);
	 public List searchGoods(String keywords,String style);
}
